package com.bocek.chakmapoint.view.toolbar;

import javax.swing.JPanel;

import com.bocek.chakmapoint.controller.SlideshowController;

import java.awt.CardLayout;

/**
 * Toolbar panel.
 * 
 * @author  Baris Sencan
 * @version 1.0
 */
public class ToolbarView extends JPanel {
	private static final long serialVersionUID = 5020167008292911256L;
	private static final ToolbarView instance = new ToolbarView();
	
	public static ToolbarView getInstance() {
		return instance;
	}

	/**
	 * Create the panel.
	 * 
	 * @requires Nothing.
	 * @modifies this
	 * @effects  Nothing.
	 */
	private ToolbarView() {
		setLayout(new CardLayout(0, 0));
		
		JPanel selectView = SelectToolbarView.getInstance();
		add(selectView, "selectView");

		JPanel lineView = LineToolbarView.getInstance();
		add(lineView, "zigzaglineView");
		
		JPanel rectangleView = RectangleToolbarView.getInstance();
		add(rectangleView, "rectangleView");
		
		JPanel ovalView = OvalToolbarView.getInstance();
		add(ovalView, "ovalView");
		
		JPanel textView = TextToolbarView.getInstance();
		add(textView, "textView");
	}
}
